package api.http.news.api;

import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import java.util.List;

import api.base.impl.BaseImpl;
import api.base.observer.DefaultNoParamsObserver;
import api.http.news.bean.News;

/**
 * Created by Administrator on 2018-01-15.
 */

public class NewsImpl extends BaseImpl<NewService> implements INews {


   @Override
    public void getNewsList(RxAppCompatActivity context, DefaultNoParamsObserver<List<News>> observer, Integer node_id, Integer offset, Integer limit) {
        scheduler(mService.getNewsList(node_id, offset, limit))
                .compose(context.<List<News>>bindToLifecycle())
                .subscribe(observer);
    }

    @Override
    public void createNews(String title, String address, String node_id) {

    }

    @Override
    public void getCommentNewList(Integer offset, Integer limit) {

    }

    @Override
    public void getNewsTypeList() {

    }

    @Override
    public void getNewsCommentDetails() {

    }

    @Override
    public void updataNewsComment(String body) {

    }

    @Override
    public void delNews() {

    }
}
